<?php

namespace App\Http\Middleware;

use Closure;

class RandomDropStormRequest
{
	public function handle($request, Closure $next, $percent)
	{
		//dd($percent);
		// Refuse $percent people.
		/*if (random_int(0, 100) < (int)$percent) {
			
			$words = collect([
				'心急吃不了热豆腐脑儿～',
				'太快了，慢一点儿～',
				'你的小手是装了马达吗?',
				'别着急，都是你的!'
			]);
			
			return fail($words->random());
		}*/
		
		return $next($request);
	}
}
